//
//  LoginWindow.swift
//  OnemeetingDemo
//
//  Created by 张衡 on 2020/4/17.
//  Copyright © 2020 www.onemeeting.1meetingIos. All rights reserved.
//

import Foundation
class LoginWindow: BaseWindow {
    
    static let shared = LoginWindow()
    
    override init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool) {
        super.init(contentRect: contentRect, styleMask: style, backing: backingStoreType, defer: flag)
        
        self.collectionBehavior = NSWindow.CollectionBehavior.fullScreenNone
        self.titlebarAppearsTransparent = true
        self.titleVisibility = .hidden
        self.styleMask = [.titled,.fullSizeContentView]
        self.standardWindowButton(NSWindow.ButtonType.zoomButton)?.isHidden = true
        self.standardWindowButton(NSWindow.ButtonType.miniaturizeButton)?.isHidden = true
        self.standardWindowButton(NSWindow.ButtonType.closeButton)?.isHidden = true
    }
}
